Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plat 9889 : Add support in eSearch aggregations #8504

Merged
merged 38 commits into from Jul 10, 2019

Conversation

MosheMaorKaltura
Copy link
Contributor

No description provided.

@MosheMaorKaltura MosheMaorKaltura changed the title Orion 15.1.0 plat 9889 1 Plat 9889 : Add support in eSearch aggregations Jun 4, 2019
@MosheMaorKaltura MosheMaorKaltura changed the base branch from Orion-15.1.0 to Orion-15.3.0 July 9, 2019 05:52

private static $map_between_objects = array(
'size',
'fieldName'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$fieldName doesn't exists in this class

{
$responseBucket = new KalturaESearchAggregationBucket();
$responseBucket->fromArray($bucket);
if($fieldName === ESearchCuePointsAggregationFieldName::TYPE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should compare $fieldName to the API enum, not to the core enum as it seems to be API since we assign it to aggs->fieldName

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking the returned value from the core.

@@ -1,215 +1,224 @@
<?php
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for some reason, it thinks you changed the whole file is there a way to prevent it?

$agg->fieldName = $fieldName;
$agg->name = ESearchCategoryAggregationItem::KEY;
$bucketsArray = new KalturaESearchAggregationBucketsArray();
$buckets = $coreResponse[ESearchAggregations::BUCKETS];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$coreResponse should be validated.

*/
protected $size;

protected $fieldName;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing @var type

$this->size = $size;
}

public function getFieldName()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing notations

return $this->fieldName;
}

public function setFieldName($fieldName)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing notations

@MosheMaorKaltura MosheMaorKaltura merged commit c28cd83 into Orion-15.3.0 Jul 10, 2019
@MosheMaorKaltura MosheMaorKaltura deleted the Orion-15.1.0-PLAT-9889-1 branch July 10, 2019 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants